package com.example.ribbon.service;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Service;

/**
 * @auth leihtg
 * @date 2018/12/24 16:53
 */
@Service
public class ConsumerServiceFallback implements FallbackFactory<ConsumerService>,ConsumerService {
    @Override
    public String welcome(String name) {
        return "访问失败:" + name;
    }

    @Override
    public ConsumerService create(Throwable throwable) {
        return this;
    }

}
